﻿using Habi.Solver.Models;
using Habi.Solver.Models.Resources;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Habi.Solver.Common
{
    public class TaskEventArgs : EventArgs
    {
        public bool OK { get; set; }
        public string FileName { get; set; }
        public string DestFileName { get; set; }
        public string Url { get; set; }
        public ResourceTaskModel Task { get; set; }

        public TaskEventArgs(ResourceTaskModel task, string filename = "", string destfile = "", bool ok = false)
        {
            Task = task;
            OK = ok;
            FileName = filename;
            DestFileName = destfile;
        }
    }
    public delegate void TaskEvent(ResourceTaskModel task);
    public delegate void ResourceEvent(ResourceModel resource);
    public delegate void TransferTaskEvent(TaskEventArgs e);
}
